New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve Issues with modbus interfacer and pymodbus #63
Conversation
Removed Pymodbus check. This has been moved to EmonModbusTcpInterfacer.
…nterfacers/EmonFroniusModbusTcpInterfacer.py
…rc/interfacers/EmonModbusTcpInterfacer.py
Hello have you tested this with a version of pymodbus > 1.4.0 ? To make it to work properly, I had to change line 108 of EmonmodbusTcpInterfacer.py from cf the pull request submitted some times ago... Alex |
Hi guys, very sorry for the very slow reply. I don't know how I missed this. I just got prompted to search for this by a forum member reporting a issue: https://community.openenergymonitor.org/t/monitor-fronius-primo-5/9437 I've just tested this PR and I get an error Please include @alexandrecuer changes if required, I see the current version is Update: It seems even after installing pymodbus (
|
@glynhudson : my PR should fix the problems encountered (ImportError, crash if pymodbus not installed, etc, etc)... It has been tested on various modbus and mbus devices and it is working fine..... Anyway, I don't have a fronius device so I cannot test the fronius part...anyway, the EmonModbusTcpInterfacer is enough to work with modbus devices... I use to install pymodbus with git rather than using pip..Anyway, there should be no difference Alex |
Thanks @alexandrecuer , I've tested and merged you PR. I will close this PR since it's a duplicate of #52 |
Removed py-modbus check from emonhub.py and added to modbus interfacer
resolved issues with import of EmonModbusTcpInterfacer in EmonFroniusModbusTcpInterfacer
moved fronius and modbus interfacers out of tmp directory. enabled fronius and modbus interfacers in init.py script